cmake_minimum_required(VERSION 3.10)

project(qtv.planet VERSION 1.0 LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
option(QTV_ACTIVEX "BUILD Active X control for the map." OFF)

if (NOT WIN32 AND QTV_ACTIVEX)
    SET(QTV_ACTIVEX OFF)
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
    #Set /utf-8 as default encoding for MSVC compiler
    if(MSVC)
        add_compile_options("-utf-8")
    endif()
endif()
add_subdirectory(qtviewer_planetosm)
add_subdirectory(qtvplugin_geomarker)
add_subdirectory(qtvplugin_grid)
add_subdirectory(qtvplugin_orbit)
add_subdirectory(qtwidget_planetosm_designer)
add_subdirectory(test_container)
